//
//  HomeViewModel.swift
//  Automobile
//
//  Created by erkebulan elzhan on 7/25/20.
//  Copyright © 2020 erkebulan elzhan. All rights reserved.
//

import UIKit


class HomeViewModel {
    struct TableData {
        var sectionName: String
        var rows: [NavItem]
    }
    var navItems: [TableData] = [
        /// First Section
        TableData(sectionName: "Избранные",
                  rows: [
                    NavItem(icon: UIImage(named: "heart"), name: "Избранные", destination: FavoritesViewController()),
                    
                    NavItem(icon: UIImage(named: "platezhi"), name: "Платежи", destination: HistoryViewController())
                  ]),
        TableData(sectionName: "Обратная связь",
                  rows: [
                    NavItem(icon: UIImage(named: "podderzhka"), name: "Написать в поддержку", destination: SupportViewController())
                  ])
        
    ]
    var user: User = User(name: "Assel", balance: 100)
}
